<template>
  <div class='ActionDelete'>
    <el-icon @click.stop.prevent="handleDelete">
      <Close/>
    </el-icon>
  </div>
</template>
<script setup name='ActionDelete'>
import {ElIcon} from "element-plus";
import {Close} from "@element-plus/icons-vue";
const emits = defineEmits(['delete'])
const handleDelete = () => {
  emits('delete')
}
</script>
<style scoped lang='scss'>
@import "@/assets/styles/variables.module";

.ActionDelete {
  cursor: pointer;
  padding: 4px;
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: $closeButtonColor;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #eee;
  transition: background-color 0.3s;

  &:hover {
    background-color: $closeButtonHoverColor;
  }
}
</style>
